cssshadowsvalue: Don't heap-allocate shadows
authorTimm Bäder <mail@baedert.org>
Sat, 30 Sep 2017 11:11:51 +0000 (13:11 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 1 Oct 2017 07:19:09 +0000 (09:19 +0200)
commit773973db78eba52e32d273a67387fd360fcdbb20
tree5da33a96b2f897aabdfefc9154c0c3e9c6b4ae6d
parent53409623e548529d9e702e6858b7cd8bbe26b48b
cssshadowsvalue: Don't heap-allocate shadows

This showed up in profiles in certain scenarios, so export a
_get_n_shadows getter instead and let callers provide a sufficiently
large allocated array of GskShadows, which we can use with
g_alloc/g_newa.
gtk/gtkcssshadowsvalue.c
gtk/gtkcssshadowsvalueprivate.h
gtk/gtkrendericon.c
gtk/gtksnapshot.c